package com.ctshk.rpc.tour.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import com.ctshk.common.model.BaseEntity;
import com.ctshk.common.model.IBaseEntity;
import com.ctshk.rpc.tour.req.trip.FileReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 成本分摊自定义
 * </p>
 *
 * @author 谢诗宏
 * @since 2021-01-18
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "t_series_trip_custom_cost",autoResultMap = true)
@ApiModel(value="SeriesTripCustomCost对象", description="成本分摊自定义")
public class SeriesTripCustomCost extends BaseEntity implements IBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "行程ID")
    private Long tripId;

    @ApiModelProperty(value = "分摊名称")
    private String name;

    @TableField(typeHandler = FastjsonTypeHandler.class)
    @ApiModelProperty(value = "报价单文件")
    private List<FileReq> quotationFileUrl;

    @ApiModelProperty(value = "档案备注")
    private String fileNotes;

    @ApiModelProperty(value = "创建人")
    private Long createId;

    @ApiModelProperty(value = "修改人")
    private Long modifiedId;

    @ApiModelProperty(value = "删除标识")
    private Integer isDeleted;


}
